<script src="/js/parameter.js"></script>
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">添加角色</h4>
</div>
<form id="defaultForm" method="post" class="form-horizontal" action="/system/parameter_save">
    <input name="id" th:value="${parameter.id}" style="display: none">
    <div class="modal-body">

        <div class="form-group">
            <label class="col-lg-3 control-label">编号</label>
            <div class="col-lg-5">
                <input type="text" readonly class="form-control" name="code" th:value="${parameter.code}" />
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">名称</label>
            <div class="col-lg-5">
                <input type="text" class="form-control" name="name" th:value="${parameter.name}" />
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">备注</label>
            <div class="col-lg-5">
                <textarea class="form-control" name="remark" th:text="${parameter.remark}" ></textarea>
            </div>
        </div>

        <!--<div class="form-group">-->
        <!--<label class="col-lg-3 control-label">测试</label>-->
        <!--<div class="col-lg-5">-->
        <!--<input type="text" class="form-control" name="test" />-->
        <!--</div>-->
        <!--</div>-->
        <!---->
        <!--<div class="form-group">-->
        <!--<div class="col-lg-9 col-lg-offset-3">-->
        <!--<button type="submit" class="btn btn-primary">Sign up</button>-->
        <!--</div>-->
        <!--</div>-->

        <!--</form>-->
        <!--<div class="all-add">-->
        <!--<div class="row-add">-->
        <!--<div class="child-row-add">-->
        <!--<label class="label-add">角色名称</label> <input class="input-add" type="text" placeholder="角色名称">-->
        <!--</div>-->

        <!--<div class="child-row-add">-->
        <!--<label class="label-add">角色名称</label> <input class="input-add" type="text" placeholder="角色名称">-->
        <!--</div>-->
        <!--</div>-->
        <!--</div>-->
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary">保存</button>
    </div>
</form>

<script th:inline="javascript">
    var tableId = [[${tableId}]];
    //表单初始化
    parameterInitCheck(tableId);
    //修改表单禁用remote
    $('#defaultForm').data('bootstrapValidator').enableFieldValidators('code',false,'remote');
</script>